package io.terminus.spzx.manager.mapper;

import io.terminus.spzx.model.dto.order.OrderStatisticsDto;
import io.terminus.spzx.model.entity.order.OrderStatistics;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 订单统计Mybatis Mapper
 * @Date 2024-10-14
 */
@Mapper
public interface OrderStatisticsMapper {

    /**
     * 查询订单统计数据
     *
     * @param orderStatisticsDto 订单统计查询条件
     * @return 订单统计汇总数据
     */
    List<OrderStatistics> selectList(OrderStatisticsDto orderStatisticsDto);

    /**
     * 保存订单统计数据
     *
     * @param orderStatistics 订单统计数据
     */
    void insert(OrderStatistics orderStatistics);
}
